// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import axios from 'axios'
import VueAxios from 'vue-axios'
import {getRequest, postRequest, deleteRequest, putRequest, getRequestAsync} from './utils/api.js'
import $ from 'jquery'
import './utils/filter_utils'
Vue.config.productionTip = false

Vue.use(ElementUI)
Vue.use(axios, VueAxios)
Vue.prototype.axios = axios
Vue.prototype.$notify = Notification
Vue.prototype.getRequest = getRequest
Vue.prototype.postRequest = postRequest
Vue.prototype.deleteRequest = deleteRequest
Vue.prototype.putRequest = putRequest
Vue.prototype.getRequestAsync = getRequestAsync
Vue.prototype.$ = $

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
